package cn.yunhe.action;

import cn.yunhe.entity.House;
import cn.yunhe.service.UserService;

public class ThisAction extends  BaseAction {
    private House house;
    private int id;
    public String execute(){
        UserService userService = new UserService();
           House house = userService.newsById(id);
           getSession().setAttribute("house",house);
           return SUCCESS;
    }

    public House getHouse() {
        return house;
    }

    public void setHouse(House house) {
        this.house = house;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
